package com.javafour;

import java.util.Calendar;

public class Demo8 {
    /*计算2020年4月6日是一年中的第几星期*/
    public static void main(String[] args) {
        Calendar calendar=Calendar.getInstance();
        calendar.set(Calendar.YEAR,2024);
        calendar.set(Calendar.MONTH,4);
        calendar.set(Calendar.DAY_OF_MONTH,23);
        int i = calendar.get(Calendar.DAY_OF_MONTH);
        System.out.println(i);
    }
}
